<?php
class Accountsettings_Data_Insert implements Accountsettings_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        //var_dump($variables['post']);
        //die();
        $variables['query'] = "INSERT INTO account_settings(username, email, password, status_name, access_level, profile_image) VALUES('".$variables['post']['username']."', '".$variables['post']['email']."', '".sha1($variables['post']['password'])."', '".$variables['post']['status_name']."', '".$variables['post']['access_level']."', 'null');";
        return $this->core_controller_dataoperation->main($variables);
    }

}
